package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.ConsumptionBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.CONN_CONSUMPION)
public class ConnConsumption extends BaseAsyPost<ConsumptionBean> {

    public String id, page;


    public ConnConsumption(String id, String page, AsyCallBack<ConsumptionBean> asyCallBack) {
        super(asyCallBack);
        this.id = id;
        this.page = page;


    }

    @Override
    protected ConsumptionBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Gson gson = new Gson();
        ConsumptionBean loginBean = new ConsumptionBean();
        loginBean = gson.fromJson(object.toString(), ConsumptionBean.class);
        return loginBean;


    }
}



